package com.hejielife.balking2;

/**
 * 2019年8月2日 下午1:34:35
 * 
 * @author hejielife
 * @despribe Main
 */
public class Main {
	public static void main(String[] args) {
		RequestQueue requestQueue1 = new RequestQueue();
		RequestQueue requestQueue2 = new RequestQueue();
		requestQueue1.putRequest(new Request("hello "));
		new TalkThread(requestQueue1, requestQueue2, "Alice").start();
		new TalkThread(requestQueue2, requestQueue1, "Bobby").start();
	}
}
